/**
 * @file       Label.h
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 12, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#ifndef LABEL_H_
#define LABEL_H_

#include "Frame.h"

namespace NS_LCD_AFW
{

class CLabel: public CFrame
{
public:
	CLabel();

protected:
	virtual ~CLabel();

public:
	void setText(std::string text);

protected:
	virtual int onDraw(IDisplay *pDisplay);
	virtual int onCreate();

private:
	virtual void onSetFocus();
	virtual void onLostFocus();
	virtual void onHightlight();
	virtual void onUnHightlight();
private:
	virtual int onRightKeyPress();
	virtual int onLeftKeyPress();
	virtual int onUpKeyPress();
	virtual int onDownKeyPress();
	virtual int onEnterKeyPress();
	virtual int onEscKeyPress();

private:
	std::string m_strText;

private:
	DISABLE_COPY_CONSTRUCTOR_AND_ASSIGN_REFERENCE(CLabel);
};

} /* namespace NS_LCD_AFW */
#endif /* LABEL_H_ */
